package com.starter.zoe;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * @author Zoe.Zhang
 * @date 2021/11/30
 * @description
 */
public class ZoeService {
    private ZoeProperties zoeProperties;

    public ZoeService(ZoeProperties zoeProperties) {
        this.zoeProperties = zoeProperties;
    }

    public String sayZoe() throws JsonProcessingException {
        return new ObjectMapper().writeValueAsString(zoeProperties);
    }
}
